import OceanComponent from '../utils/class/OceanComponent';

function useController<T = any, A = any, B = any>(o: OceanComponent) {
  let controller: [T, A, B] = o.getAttrs();
  return Array.isArray(controller) ? controller : ([controller] as const);
}

export default useController;
